package praktikumid.w09.p4.interface_example;

/**
 * Cat, a concrete species of animal. In OOP context,
 * Cat extends Animal class. 
 * 
 * Cat is also considered to be land animal.
 * It implements ILandAnimal interface.
 * @author Ago
 *
 */
public class Cat extends Animal implements ILandAnimal {

	@Override
	public void eat() {
		// this is the implementation
		// of eat method for the cat.
		
		// eats mice and milk
		
	}
	
	@Override
	public void sleep() {
		// let's say cat sleeps differently,
		// we override sleep method.
		
		// sleeps eyes open
		//super.sleep();
	}

	@Override
	public void walk() {
		// as cat implements ILandAnimal interface
		// it has to implement all the methods
		// from this interface.
		// This describes, how cat walks.
		
	}

}
